#include <stdio.h>
#include <assert.h>
#include "log.h"
bool log_enable = true;
FILE *log_fp = NULL;

void init_log(const char*log_file) {
	log_fp = stdout;
	if(log_file != NULL){
		 FILE *fp = fopen(log_file,"w");
		assert(fp);
		log_fp = fp;
	}
	Log("Log is written to %s", log_file ? log_file:"stdout");
}
